package com.medusa.aps.business.modules.modeling.mp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.medusa.aps.business.model.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 工艺工序实体类
 *
 * @author yuxh
 * @since 2023-08-14 17:37:52
 */
@Data
@Accessors(chain = true)
@Schema(description = "工艺工序实体类")
@EqualsAndHashCode(callSuper = true)
public class TechnologicalProcess extends BaseEntity<TechnologicalProcess> {
    /**
     * 主键
     */
    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 工序id
     */
    @Schema(description = "工序id")
    private Integer processId;
    /**
     * 工序号
     */
    @Schema(description = "工序号")
    private Integer processNumber;
    /**
     * 工序编码
     */
    @Schema(description = "工序编码")
    private String processCode;
    /**
     * 工序名称
     */
    @Schema(description = "工序名称")
    private String processName;
    /**
     * 换型时间
     */
    @Schema(description = "换型时间")
    private Long replacementTime;
    /**
     * 转运批量
     */
    @Schema(description = "转运批量")
    private Long transshipmentBatch;
    /**
     * 转运时间
     */
    @Schema(description = "转运时间")
    private Long transshipmentTime;
    /**
     * 加工内容
     */
    @Schema(description = "加工内容")
    private String processingContent;
    /**
     * 工艺路线id
     */
    @Schema(description = "工艺路线id")
    private Integer processRouteId;
    /**
     * 物料id
     */
    @Schema(description = "物料id")
    private Long materialId;
    /**
     * 物料编码
     */
    @Schema(description = "物料编码")
    private String materialCode;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

